import os,os.path

def traverse(pathname):
    for item in os.listdir(pathname):
        fullpath = os.path.join(pathname, item)
        print(fullpath)
        if os.path.isdir(fullpath):
            traverse(fullpath)

traverse("C:\\Users\\Administrator\\Desktop\\python")